#ifndef SCRIPTRUNNER_H
#define SCRIPTRUNNER_H

#include <QObject>
#include <QThread>
#include <QProcess>
#include <QString>
#include "swupdateclient.h"
class ScriptRunner : public QObject
{
    Q_OBJECT
public:
    explicit ScriptRunner(QObject *parent = nullptr);
    bool deleteFile(const QString &filePath);
    void deleteSwuFilesInDir(const QString &directoryPath);
    void writeUpgradeLog(const QString &message);
    bool updateRes;
public slots:
    void startShell();
    void recvData(const QByteArray &data);
signals:
    void sigQueShell(progress_msg msg);
};

#endif // SCRIPTRUNNER_H
